package com.ksd.modules.course.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ksd.common.po.BatchIdsPO;
import com.ksd.commons.IBaseService;
import com.ksd.modules.course.entity.AdminCourseUserBuy;
import com.ksd.modules.course.po.AdminCourseUserBuySavePO;
import com.ksd.modules.course.po.AdminCourseUserBuySearchPO;
import com.ksd.modules.course.vo.AdminCourseUserBuyVo;

public interface IAdminCourseUserBuyService extends IBaseService<AdminCourseUserBuy> {


    /**
     * 查询列表
     * @param adminCourseUserBuySearchPO
     * @return
     */
    Page<AdminCourseUserBuyVo> findAdminCourseUserBuys(AdminCourseUserBuySearchPO adminCourseUserBuySearchPO);

    /**
     * 保存和更新
     * @param adminCourseUserBuySavePO
     * @return
     */
    AdminCourseUserBuyVo saveUpdateAdminCourseUserBuy(AdminCourseUserBuySavePO adminCourseUserBuySavePO);

    /**
     * 根据ID获取明细
     * @param id
     * @return
     */
    AdminCourseUserBuyVo getAdminCourseUserBuyById(Long id);


    /**
     * 单个物理删除
     * @return
     */
    Boolean removeAdminCourseUserBuyById(Long id);

    /**
     * 批量物理删除
     * @param batchIdsPO
     * @return
     */
    Boolean batchRemovesAdminCourseUserBuy(BatchIdsPO batchIdsPO);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);

    /**
     * 用户绑定课程订单
     * @param uuid
     * @param opid
     * @return
     */
    boolean bindUserOrder(String uuid, Long opid);
}
